package top.shmly.universal.base.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Constraint(validatedBy = BankCardValidator.class)
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface BankCard {

    String message() default "请输入有效银行卡号";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
